package com.yyw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yyw.bean.Accusation;

@Mapper
public interface AccusationDao {

    /**
     * 添加举报
     *
     * @param accusation
     * @return
     */
    int saveAccusation(Accusation accusation);

    /**
     * 分组获取每一个举报物的被举报次数
     *
     * @return
     */
    List<Accusation> getAccusationsGroup();

    /**
     * 删除指定评论物的评论
     * @param aid
     * @return
     */
    int deleteAccusation(@Param("aid") Long aid);
}
